import { createApp } from 'vue'
import App from './App.vue'
//引入element插件
import ElementPlus from 'element-plus';
//导入图标
import *as ElementPlusIconsVue from '@element-plus/icons-vue';
//导入element样式文件
import 'element-plus/dist/index.css';
//引入main.js
import 'reset-css';
//引入router文件
import Router from './router.js';
//引入pinia
import { createPinia } from 'pinia';
const app = createApp(App);
const Pinia = createPinia();
app.use(ElementPlus);
//将所有图标注册为全局组件
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(Router);
app.use(Pinia);
app.mount('#app');
